﻿// ע�

using IotContract.Dtos.Servers;
using IotContract.Dtos.Servers.Pushs;
using IotContract.Interfaces;
using Microsoft.AspNetCore.Http;
using ProtoBuf;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IotContract.Models.Mqtt;
public class MqttPublishEquipDto : IPushEquip
{
    public long Id { get; set; }
    public long EquipId { get; set; }

    public string Value { get; set; }
    /// <summary>
    /// 程序Id
    /// </summary>
    public long ProgramId { get; set; }
    /// <summary>
    /// 协议
    /// </summary>
    public string ProtobufType { get; set; }
    /// <summary>
    /// 连接状态
    /// </summary>
    public bool Connection { get; set; }
    /// <summary>
    /// 轮询状态
    /// </summary>
    public bool Status { get; set; }
    public string EquipType { get; set; }

    /// <summary>
    /// 编号
    /// </summary>
    public string Num { get; set; }
    /// <summary>
    /// 是否拥有点位
    /// </summary>
    public bool HasTags { get; set; }

    /// <summary>
    /// 读取时间
    /// </summary>
    public DateTime? ReadTime { get; set; }
    /// <summary>
    /// 读取时间
    /// </summary>
    public bool IsMqttPublish { get; set; }

    public int interval { get; set; } = 1000;

    public List<PushEquipTag> Tags { get; set; }
    public string Remark { get; set; }
} 